<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">提纲大分类</td>
		<td class="queryContent">
			<select id="queryTmplType" name="queryTmplType" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" ></select>
		</td>
		<td class="queryTitle" width="68px">设计模版名</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryTmplName" />
		</td>
		<td class="queryTitle" width="68px">发布状态</td>
		<td class="queryContent">
		    <select id="queryPublish" name="queryPublish" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px">
	    		<option value="-1">[不限]</option>
				<option value="0">未发布</option>
				<option value="1">已发布</option>
			</select> 
		</td>
	</tr>
	<tr>
		<td class="queryTitle" width="68px">模版状态</td>
		<td class="queryContent">
			<select id="queryTmplState" name="queryTmplState" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
				<option value="">[不限]</option>
				<option value="10">制作中</option>
				<option value="20">待审核</option>
				<option value="31" selected>初审OK</option>
				<option value="41">初审NG</option>
				<option value="32">复审OK</option>
				<option value="42">复审NG</option>
			</select>
		</td>
		<td class="queryTitle" width="68px">组织机构</td>
		<td class="queryContent">
			<select id="queryTgOrg" name="queryTgOrg" class="easyui-combobox" panelHeight="150px" editable="false" style="width: 147px"></select>
		</td>
		<td class="queryBtnTd" colspan="2">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" plain="true"  onclick="doQuery(1)">查询</a>
		</td>
	</tr>
</table>

<table id="tmplGrid"></table>

<div id="orderDlg" class="easyui-window" title="" closed="true" style="width:600px; height:auto;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="orderForm"  method="POST">
			<s:hidden name="designId" id="designId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="orderTable">
				<tr>	
					<td class="queryTitle" width="80px">显示顺序</td>
					<td class="queryContent">
						<s:textfield id="order" name="order" cssClass="inputText easyui-validatebox" data-options="" onkeyup="value=value.replace(/[^\d]/gi,'')" cssStyle="width:250px"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="orderBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdOrder()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdOrder()">取消</a>
    </div>
</div>

<div id="chkNgDlg" class="easyui-window" title="" closed="true" style="width:600px; height:280px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="chkNgForm"  method="POST">
			<s:hidden name="chkDesignId" id="chkDesignId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="orderTable">
				<tr>	
					<td class="queryTitle" width="80px">打回理由</td>
					<td class="queryContent">
						<textarea id="chkDesc" name="chkDesc" rows="10" cols="70" class="inputText easyui-validatebox" style="width:100%;resize:none;" data-options="required:true,validType:['maxLength[2000]']"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="chkNgBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doChkNG()">确认打回</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelChkNG()">取消</a>
    </div>
</div>

<script type="text/javascript" src="${ctx}/js/tg/designReview.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
